package ar.edu.unlu.sistemas.p2p.business.vo;

public class WordVO {
	
	private int id;
	private String name;
	
	public WordVO() {
		
	}
	
	public WordVO(String name) {
		this.name = name;
	}
	
	public WordVO(int id, String name) {
		this.name = name;
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public boolean equals(Object o) {
		if (o instanceof WordVO) {
			WordVO wVO = (WordVO) o;
			return (this.getName() == null) ?  (wVO.getName() == null) : (this.getName().equals(wVO.getName()));
		} else {
			return false;
		}
		
		
	}
}
